﻿using System.Web.Mvc;
using SilenthinkContract;

namespace Web.Areas.Help.Controllers
{
    public class QuestionController : Controller
    {
        private readonly WcfClientProxy<IExtraService> extraProxy;

        public QuestionController(WcfClientProxy<IExtraService> extraProxy)
        {
            this.extraProxy = extraProxy;
        }

        public ActionResult Index(int param)
        {
            var model = extraProxy.Invoke(o => o.GetHelpQuestion(param));
            return View(model);
        }

    }
}
